package com.atguigu.gmall.order.service;

import com.atguigu.gmall.model.enums.ProcessStatus;
import com.atguigu.gmall.model.order.OrderInfo;

import java.util.List;
import java.util.Map;

public interface OrderService {
    Long submitOrder(OrderInfo orderInfo);

    Boolean hasStock(Long skuId, Integer skuNum);

    void cancelOrder(Long orderInfoId);

    OrderInfo getOrderInfo(Long orderId);

    void updateOrderStatus(Long orderInfoId, ProcessStatus processStatus);

    void sendOrderStatus(Long orderInfoId);

    //封装发送给仓库所需的数据
    Map initWareOrder(OrderInfo orderInfo);

    List<OrderInfo> orderSplit(Long orderId, String wareSkuMap);
}
